from django.urls import path
from . import views

urlpatterns = [
    # 主页
    path('index/', views.index, name='index'), 

    # 作品
    path('search_product/', views.search_product, name='search_product'), # 查询
    path('search_product_get/', views.search_product_get, name='search_product_get'), # 查询get
    path('search_product_post/', views.search_product_post, name='search_product_post'), # 查询post
    path('add_product/', views.add_product, name='add_product'),
    path('add_product_get/', views.add_product_get, name='add_product_get'),
    path('add_product_post/', views.add_product_post, name='add_product_post'),
    path('update_product/', views.update_product, name='update_product'),
    path('update_product_get/', views.update_product_get, name='update_product_get'),
    path('update_product_post/', views.update_product_post, name='update_product_post'),

    # 作品系列
    path('search_theme/', views.search_theme, name='search_theme'), # 查询
    path('search_theme_get/', views.search_theme_get, name='search_theme_get'), # 查询get
    path('search_theme_post/', views.search_theme_post, name='search_theme_post'), # 查询post

    path('update_theme/', views.update_theme, name='update_theme'),
    path('update_theme_get/', views.update_theme_get, name='update_theme_get'),
    path('update_theme_post/', views.update_theme_post, name='update_theme_post'),

    # 观看记录
    path('search_watch/', views.search_watch, name='search_watch'), # 查询
    path('search_watch_get/', views.search_watch_get, name='search_watch_get'), # 查询get
    path('search_watch_post/', views.search_watch_post, name='search_watch_post'), # 查询post
    path('add_watch/', views.add_watch, name='add_watch'),
    path('add_watch_get/', views.add_watch_get, name='add_watch_get'),
    path('add_watch_post/', views.add_watch_post, name='add_watch_post'),
    path('add_watch_name_post/', views.add_watch_name_post, name='add_watch_name_post'),
    path('update_watch/', views.update_watch, name='update_watch'),
    path('update_watch_get/', views.update_watch_get, name='update_watch_get'),
    path('update_watch_post/', views.update_watch_post, name='update_watch_post'),

    # 追番状态
    path('search_updating_post/', views.search_updating_post, name='search_updating_post'),
]
